package com.xk.school_device.mapper;

import com.xk.school_device.entity.Users;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xk
 * @since 2025-04-16
 */
@Mapper
public interface UsersMapper extends BaseMapper<Users> {

    Users selectOneByUserName(String username);

    @Update("update users set full_name=#{fullName},phone=#{phone} where user_id=#{userId}")
    void updateUserInfoById(Users user);

    Users selectUsersById(String id);

    void updateByIdImage(Users byId);

    void restPassword(String id, String encrypt);
}
